<?php
include_once("../DAO/DanhMucDAO.php");
include_once("../DAO/DanhMucDTO.php");
include_once("../DAO/DataHelper.php");
 
 $MucCha = $_GET['MucCha'];
 $TenDanhMuc = $_GET['TenDanhMuc'];

if($MucCha !='MucCha')
	{
		$Update = DanhMucDao::CapNhatDanhMuc($TenDanhMuc,$MucCha);
		$KQ = DanhMucDAO::DanhMucSanPham();
	}
	echo "<option value ='MucCha'>Chon Danh Muc</option>";
 for($i = 0 ; $i < count($KQ) ; $i++)
	{
		$danhmuc = $KQ[$i];
		echo "<option value = $danhmuc->dm_ma>$danhmuc->dm_ten</option>";
	}
 	
?>